<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>标题</h1>
		<p>
			<span>开头</span>
			<span>内容</span>
			段落内容段落内容段落内容段落内容段落内容段落内容</p>
			
			<script type="text/javascript">
				
				window.onload=function()
				{
					console.log("节点名字："document.body.nodeName)
					console.log("节点类型："document.body.nodeType)
					console.log("节点链："document.body.nodeValue)
					
					console.log("子节点："document.body.childNodes)
					console.log("子节点："document.body.childNodes.length)
					
					console.log(body.childNodes[0].nodeName)
					console.log(body.childNodes[0].nodeType)
					console.log(body.childNodes[0].nodeValue)
				}
			</script>
	</body>
</html>
